package com.ruoyi.storeclassify.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 分类对象 jy_storeclassify
 *
 * @author ruoyi
 * @date 2021-11-18
 */
public class Storeclassify extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 父_id */
    @Excel(name = "父_id")
    private Long parentId;

    /** 祖级列表 */
    @Excel(name = "祖级列表")
    private String ancestors;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String classifyName;

    /** 分类图标地址 */
    @Excel(name = "分类图标地址")
    private String classifyImg;

    /** 是否启用 */
    @Excel(name = "是否启用")
    private String state;

    /** 是否可以在前端展示 */
    private String showWechat;

    /** 排序 */
    @Excel(name = "排序")
    private Long orderNum;

    public String getShowWechat() {
        return showWechat;
    }

    public void setShowWechat(String showWechat) {
        this.showWechat = showWechat;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setParentId(Long parentId)
    {
        this.parentId = parentId;
    }

    public Long getParentId()
    {
        return parentId;
    }
    public void setAncestors(String ancestors)
    {
        this.ancestors = ancestors;
    }

    public String getAncestors()
    {
        return ancestors;
    }
    public void setClassifyName(String classifyName)
    {
        this.classifyName = classifyName;
    }

    public String getClassifyName()
    {
        return classifyName;
    }
    public void setClassifyImg(String classifyImg)
    {
        this.classifyImg = classifyImg;
    }

    public String getClassifyImg()
    {
        return classifyImg;
    }
    public void setState(String state)
    {
        this.state = state;
    }

    public String getState()
    {
        return state;
    }
    public void setOrderNum(Long orderNum)
    {
        this.orderNum = orderNum;
    }

    public Long getOrderNum()
    {
        return orderNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("parentId", getParentId())
            .append("ancestors", getAncestors())
            .append("classifyName", getClassifyName())
            .append("classifyImg", getClassifyImg())
            .append("state", getState())
            .append("orderNum", getOrderNum())
            .append("delState", getDelState())
            .append("delUser", getDelUser())
            .append("delType", getDelType())
            .append("delTime", getDelTime())
            .append("createBy", getCreateBy())
            .append("createType", getCreateType())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateType", getUpdateType())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
